﻿using Basic.FormRemoteModel.QueryForm;
using Basic.FormRemoteModel.QueryForm.Model;
using Basic.UserFormService.Interface;
using WeDonekRpc.Client;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class PhysicsQueryEvent : IRpcApiService
    {
        private readonly IPhysicsQueryService _Service;

        public PhysicsQueryEvent(IPhysicsQueryService service)
        {
            this._Service = service;
        }

        public PagingResult<object> QueryPhyTable(QueryPhyTable obj)
        {
            return this._Service.Query(obj.QueryParam, obj.ToBasicPage());
        }
        public QueryFormRecord GetQueryFormRecord(GetQueryFormRecord obj)
        {
            return this._Service.Get(obj.FormId, obj.Id);
        }
    }
}
